From 59a28b5f045331641cbf0c1fc8d5d67afe328939 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Thu, 14 Feb 2013 14:20:06 +0100 Subject: [PATCH] x86: explicit suffix in inline assembler (for clang). This fixes the clang build, and has no effect on gcc's output. Signed-off-by: Tim Deegan Committed-by: Jan Beulich --- xen/arch/x86/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 4331386c69..84c67a721f 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -127,7 +127,7 @@ static inline u64 scale_delta(u64 delta, struct time_scale *scale) delta <<= scale->shift; asm ( - "mul %2 ; shrd $32,%1,%0" + "mulq %2 ; shrd $32,%1,%0" : "=a" (product), "=d" (delta) : "rm" (delta), "0" ((u64)scale->mul_frac) ); -- 2.30.2